﻿<phone:PhoneApplicationPage
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ControlsToolkit="clr-namespace:System.Windows.Controls" 
    xmlns:edc="clr-namespace:Microsoft.Expression.Controls;assembly=Microsoft.Expression.Drawing" 
    x:Class="Social_Photos.PhotoDetails"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">
	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar>
			<shell:ApplicationBarIconButton x:Name="post" IconUri="/icons/send2.png" Text="post" Click="post_Click" />
			<shell:ApplicationBarIconButton x:Name="like" IconUri="/icons/like.png" Text="Like" Click="like_Click" />
			<shell:ApplicationBarIconButton x:Name="dislike" IconUri="/icons/dis_like.png" Text="dislike" Click="dislike_Click"/>
			<shell:ApplicationBarIconButton x:Name="location" IconUri="/icons/location.png" Text="location" Click="location_Click"/>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!--Use the recommended progress bar.-->
        <toolkit:PerformanceProgressBar Height="10" HorizontalAlignment="Left" Margin="10,0,10,0" 
                                        Name="requestProgress" VerticalAlignment="Top" 
                                        Width="455" Grid.Row="1" Visibility="Collapsed"
                                         IsIndeterminate="false" IsHitTestVisible="False"/>



        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid x:Name="viewBox"  Margin="6,12,6,300">
                <!--<Viewbox Stretch="None"></Viewbox>-->


                <Image x:Name="PhotoImage" Source="{Binding StreamUri}">
                    <!--<toolkit:GestureService.GestureListener>
                        <toolkit:GestureListener DragCompleted="OnDrag"/>
                    </toolkit:GestureService.GestureListener>-->
                    <Image.RenderTransform>
                        <CompositeTransform x:Name="transform"/>
                    </Image.RenderTransform>
                    <toolkit:GestureService.GestureListener>
                        <toolkit:GestureListener 
                        Tap="OnTap" Hold="OnHold"
                        DragStarted="OnDragStarted" DragDelta="OnDragDelta" DragCompleted="OnDragCompleted"
                        PinchStarted="OnPinchStarted" PinchDelta="OnPinchDelta" PinchCompleted="OnPinchCompleted"/>
                    </toolkit:GestureService.GestureListener>
                        <toolkit:TransitionService.NavigationInTransition>
                        <toolkit:NavigationInTransition>
                            <toolkit:NavigationInTransition.Backward>
                                <toolkit:TurnstileTransition Mode="BackwardIn"/>
                            </toolkit:NavigationInTransition.Backward>
                            <toolkit:NavigationInTransition.Forward>
                                <toolkit:TurnstileTransition Mode="ForwardIn"/>
                            </toolkit:NavigationInTransition.Forward>
                        </toolkit:NavigationInTransition>
                    </toolkit:TransitionService.NavigationInTransition>

                    
                </Image>
                <!--</Viewbox>-->
            </Grid>
           
            
            <Grid Visibility="Visible" x:Name="like_dislike">
                <TextBlock Height="30" HorizontalAlignment="Left" Margin="0,410,0,0" x:Name="textBlock1" Text="Like: " VerticalAlignment="Top" Foreground="White" FontFamily="Segoe UI" FontSize="26.667" />
                <TextBlock HorizontalAlignment="Left" Margin="57,410,0,256" x:Name="tblike" Text="10 " Foreground="White" FontFamily="Segoe UI" FontSize="26.667" />
                <TextBlock HorizontalAlignment="Left" Margin="89,410,0,256" x:Name="spra" Text="|" Foreground="#FFFF0B0B" FontFamily="Segoe UI" FontSize="26.667" Height="37" Width="6.38000011444092" />
                <TextBlock Height="30" Margin="102,410,264,0" x:Name="textBlock2" Text="Dislike: " VerticalAlignment="Top" Foreground="White" FontFamily="Segoe UI" FontSize="26.667" />
                <TextBlock Height="30" HorizontalAlignment="Left" Margin="188,410,0,0" x:Name="tbdislike" Text="10 " VerticalAlignment="Top" Foreground="White" FontFamily="Segoe UI" FontSize="26.667" />
                
                <!--<ControlsToolkit:Rating Height="40" Value="0.65" ItemCount="0" Margin="252,406,6,250">
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Style="{StaticResource RatingItemLeftStyle}" />
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Margin="0" Style="{StaticResource RatingItemRightStyle}" />
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Style="{StaticResource RatingItemLeftStyle}" />
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Margin="0" Style="{StaticResource RatingItemRightStyle}" />
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Style="{StaticResource RatingItemLeftStyle}" />
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Margin="0" Style="{StaticResource RatingItemRightStyle}" />
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Style="{StaticResource RatingItemLeftStyle}" />
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Margin="0" Style="{StaticResource RatingItemRightStyle}" />
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Style="{StaticResource RatingItemLeftStyle}" />
                    <ControlsToolkit:RatingItem Foreground="#FFFFD902" Margin="0" Style="{StaticResource RatingItemRightStyle}" />
                </ControlsToolkit:Rating>-->
            </Grid>
            <Canvas x:Name="myComment"
                    Height="145"
                    Width="454"
                    HorizontalAlignment="Left"
                    VerticalAlignment="Top"
                    Margin="-2,237,0,0"
                    Background="Black" d:IsHidden="True" 
                    Visibility="Collapsed"
                    >

                <TextBlock VerticalAlignment="Top"
                           HorizontalAlignment="Left"
                           FontWeight="Bold"
                           Height="36"
                           Width="108"
                           x:Name="instructionsTextBlock"
                           Text="Comment"
                           TextAlignment="Left"
                           TextWrapping="Wrap" Canvas.Top="-2" Foreground="White" Canvas.Left="6"
                           />

                <Button Height="70"
                        Width="198"
                        Content="Send"
                        x:Name="send"
                        Click="send_Click" Canvas.Left="260" Canvas.Top="84" />
                <TextBox x:Name="txtComment" Canvas.Left="-6" TextWrapping="Wrap" Text="" Canvas.Top="20" Width="464" Height="76" />
            </Canvas>


        </Grid>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
